﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using WebApplication.DTO;

namespace WebApplication.DAO
{
    public class listKeyDAO
    {
        
        public static void chuanHoaListKey(List<keyDTO> listKey)
        {
            int flag;
            do
            {
                flag = 0;
                for (int i = 0; i < listKey.Count; i++)
                {
                    keyDTO kPJ = listKey[i];
                    if (kPJ.getId() == null || kPJ.getId().Equals("") || kPJ.getId().Count() <= 0)
                    {
                        listKey.Remove(kPJ);
                        flag = 1;
                    }
                }

            } while (flag == 1);
        }
    }

   
}